#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.conf.urls import patterns,url
import views

urlpatterns = patterns('',
                       #url(r'^phone/(?P<num>\w+)/(?P<flag>\d+)/$', views.phone, name='phone'),
                       url(r'^$', views.devices_search, name="search"),
                       url(r'^phone/$', views.phone),
                       url(r'^QRcode/$', views.QRcode, name="QRcode"),
                       url(r'^xls/upload/$', views.xls_upload, name="xls_upload"),
                       url(r'^room/(?P<building>\w+)/(?P<room>\w+)$', views.admin_QRroom, name="QRroom"),
                       url(r'^room/(?P<building>\w+)$', views.admin_QRbuilding, name="QRbuilding"),
)